package com.morningstar.qs.basic.db.bean;

import java.util.Date;

import com.morningstar.qs.basic.db.util.BeanBase;

public class Institution extends BeanBase implements  java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7391175878272166511L;
	
	private int instId;
	private int parentId;
	private String instCode;
	private String instName;
	private String description;
	private String editor;
	private Date createDate;
	private Date lastUpdateDate;
	private short valid;
	
	//transient
	private Institution parentInst;
	
	public Institution(){
		
	}
	

	public Institution(int instId, int parentId, String instCode,
			String instName, String description, String editor,
			Date createDate, Date lastUpdateDate, short valid) {
		super();
		this.instId = instId;
		this.parentId = parentId;
		this.instCode = instCode;
		this.instName = instName;
		this.description = description;
		this.editor = editor;
		this.createDate = createDate;
		this.lastUpdateDate = lastUpdateDate;
		this.valid = valid;
	}



	public int getInstId() {
		return instId;
	}

	public void setInstId(int instId) {
		this.instId = instId;
	}

	public int getParentId() {
		return parentId;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public String getInstCode() {
		return instCode;
	}

	public void setInstCode(String instCode) {
		this.instCode = instCode;
	}

	public String getInstName() {
		return instName;
	}

	public void setInstName(String instName) {
		this.instName = instName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public short getValid() {
		return valid;
	}

	public void setValid(short valid) {
		this.valid = valid;
	}
	
	public String getEditor() {
		return editor;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public Date getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(Date lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public Institution getParentInst() {
		return parentInst;
	}


	public void setParentInst(Institution parentInst) {
		this.parentInst = parentInst;
	}


	@Override
	public String toString() {
		return "Institution [instId=" + instId + ", parentId=" + parentId
				+ ", instCode=" + instCode + ", instName=" + instName
				+ ", description=" + description + ", createDate=" + createDate
				+ ", valid=" + valid + "]";
	}
	
	

}
